<template>
	<view class="content">
		<view class="FeedList  margin-20">
			<view class="FeedItem">
				<view class="title">
					建议类型
				</view>
				<view class="picker">
					<picker class="pickerWidth" @change="bindPickerChange" :value="index" :range="array">
						<view class="uni-input" v-if="index==-1">{{index==-1?'请选择':array[index]}}</view>
						<view class="uni-input-center" v-else>{{index==-1?'请选择':array[index]}}</view>
					</picker>
					<view class="iconfont icon-zuoyou">
						
					</view>
				</view>
			</view>
			<view class="FeedItem">
				<textarea placeholder="请填写意见或建议" :auto-height='true' type="text" class="textarea">
					</textarea>
			</view>

		</view>
		<view class="pop_bot" @tap="Freeappointment">
			保存
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['中国', '美国', '巴西', '日本'],
				index: -1,
			}
		},
		methods: {
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.detail.value)
				this.index = e.detail.value
			},
		}
	}
</script>

<style scoped lang="less">
	.content {
		border-top: 1px solid #E0E0E0;

		.FeedList {
			padding-top: 10rpx;
		}

		.FeedItem {
			padding-top: 20rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.title {
				font-size: 28rpx;
				font-weight: 400;
				letter-spacing: 0px;
				line-height: 18px;
				color: rgba(51, 51, 51, 1);
				text-align: left;
				vertical-align: top;
			}

			.picker {
				display: flex;
				align-items: center;
				width: 80%;
				.pickerWidth{
					width: 100%;
					color: #333;
					font-size: 24rpx;
					padding: 0 20rpx;
				}
				.uni-input{
				text-align: right;
					color: rgba(51, 51, 51, .8);
				}
				.uni-input-center{
					color: rgba(51, 51, 51, 1);
					text-align: right;
					font-size: 28rpx;
				}
			}
			
			.textarea{
				border: 1px solid #eee;
				font-size: 28rpx;
				padding: 10rpx;
				width: 100%;
				border-radius: 10rpx;
				min-height: 200rpx;
				padding: 20rpx;
				
			}
		}
		.pop_bot {
			background: rgba(212, 48, 48, 1);
			color: rgba(255, 255, 255, 1);
			font-size: 28rpx;
			margin: 50rpx 50rpx;
			padding: 20rpx 0;
			text-align: center;
			text-align: center;
			border-radius: 50rpx;
		
		}
	}
</style>